<%@ page language="java" pageEncoding="UTF-8" import="java.lang.Exception"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>::中国联通无线宽带接入认证系统</title>
<link rel="stylesheet" type="text/css" href="css/user.css">
<style type="text/css">
.panel-body{
	padding-top:45px;
}
</style>
</head>
<body>

<div id="main">
	
	<div class="panel-center" style="width:600px;margin:0 auto;text-align:center">
		<div class="panel-title"><span style="float:left;padding-left:10px">中国联通</span>
			<span><a href="javascript:void(0)" onclick="window.close();" style="float:right;padding-right:10px;color:#111" title="点击关闭">关闭 </a></span></div>
		
		<div class="panel-body"  style="text-align:center;height:320px">
			
			<% Exception ex = (Exception)request.getAttribute("exception");
			   if(ex == null&&request.getParameter("errorCode")!=null){
				   String  errorCode = request.getParameter("errorCode");
				   if(errorCode.equals("ERROR_IP")){
					   ex = new Exception("未查询到绑定该IP的用户");
				   } else if(errorCode.equals("ERROR_SYSDATA")){
					   ex = new Exception("系统数据错误:数据超出额定数目");
				   } else if(errorCode.equals("ERROR_USERSTATUS")){
					   ex =  new Exception("该用户被禁用");
				   } else if(errorCode.equals("ERROR_NONEOCT")){
					   ex =  new Exception("流量超出额定流量限制");
				   } else if(errorCode.equals("ERROR_SYS")){
					   ex =  new Exception("系统错误");
				   }
			   }
			   if(ex!=null){
			%>
			<font style="color:red">异常:</font><%=ex.getMessage() %>
			<hr style="color: blue;border-style:dotted;width:80%;color:#EEE"/>
			<div><%=ex.getCause()==null?"":ex.getCause()%></div>
			<%} else {%>未知错误<%} %>
		</div>
		
		<div style="text-align:center;">
			如果您有任何疑问，请<a href="message.jsp">留言</a>给我们
		</div>
	</div>
</div>
</body>
</html>